package dfbz.demo01;

import java.util.Arrays;

public class Test04 {
    public static void main(String[] args) {
        String str="Helloworld";
        char[] chars=str.toCharArray();
        String str1= Arrays.toString(chars);
        System.out.println(str1);
       //转成字符串输出
        byte[] bytes=str.getBytes();
        System.out.println(Arrays.toString(bytes));
       //转换成大写
        String toUpperCase = str.toUpperCase();
        System.out.println(toUpperCase);
        //转换成小写
        String lowerCase = str.toLowerCase();
        System.out.println(lowerCase);
        //o替换-O
        String replace = str.replace("o", "O");
        System.out.println(replace);
       //风格字符串
        String[] split=str.split(",");
        System.out.println(Arrays.toString(split));
    }
}
